
import java.awt.Color;
import java.awt.Graphics;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author bosco
 */
public class color extends editorGrafico{
    int valorColor=1;
    String colores="black";
 color(int valorColor){
     if(valorColor==1){
        colores="black";
     }
     else{
         colores="red";
     }
 }
  public void pinta(Graphics pContexto, String colores) {
      pContexto.setColor(Color.decode(colores));
  }


}
